# -*- coding: utf-8 -*-
import pymysql

"""
公用配置
source_name_id
90-IPO资讯微信公众号, 10-shui5, 20-国家知识产权局政策解读|21-国家知识产权局公告, 30-八戒工商注册|31-八戒工商变更
10000_金谷子APP
category_id
0-IPO资讯, 1-税务资讯, 2-知识产权资讯, 3-工商资讯, 4-政府补助
"""
# 数据库配置
MYSQL_HOST = "111.230.195.67"
MYSQL_DBNAME = "tax"
MYSQL_USER = "awmaster"
MYSQL_PASSWORD = "Ju9LdiB4TfDXarqJ"
MYSQL_PORT = 3309
# MYSQL_HOST = "10.66.225.40"
# MYSQL_DBNAME = "ljq_helper_91"
# MYSQL_USER = "ljq_helper"
# MYSQL_PASSWORD = "zunhao123"
# MYSQL_PORT = 3306

connect = pymysql.connect(
    host=MYSQL_HOST,
    db=MYSQL_DBNAME,
    user=MYSQL_USER,
    passwd=MYSQL_PASSWORD,
    port=MYSQL_PORT,
    charset='utf8',
    use_unicode=True)
# cursor = connect.cursor()

# 代理IP配置
dby_url = "http://httpbapi.dobel.cn/User/getIp"
account = "EALJYLJf1w12grTA"
accountKey = "s1kJ6ItkKW95"
num = "1"
city = "all"

# 其他
# agentId = AGENTID
# source = 0
# REQUEST_HOST = "https://helper.zooming-data.com/qywx-rest/"
# APPID = "wx61f865ee15ef6563"
# CROPID = "ww5da6447305627eb1"
# ENTERPRISEID = "91"
# CLIENTID = "796"
# CLIENTNAME = "猪大帅 | AW大师"
# AGENTID = "950"
# REQUEST_HOST = "https://back-sit.zooming-data.com/qywx-rest/"
# APPID = "wx6c6423c9efb44c75"
# CROPID = "ww8f6801ba5fd2a112"
# ENTERPRISEID = 90
# CLIENTID = "513"
# CLIENTNAME = "李特"
# AGENTID = "4425"

"""
国家知识产权局--配置
"""
sourceNameIDList = [
    {"source_name_id": 20, "columnid": 66, "unitid": 669},
    {"source_name_id": 21, "columnid": 74, "unitid": 485}
]

